package com.corn.kafkastream.entity;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2022/9/20 14:13
 */

@Data
public class User {

    private String name;

    private Integer age;

    private String addr;

    private String bankNo;

    public static void main(String[] args) throws JsonProcessingException {
        ObjectMapper objectMapper = new ObjectMapper();
        User user = new User();
        user.setName("test1");
        user.setAge(12);
        user.setAddr("cq");
        user.setBankNo("33212313111111");
        System.out.println(objectMapper.writeValueAsString(user));

    }

}
